<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/5
  Time: 15:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>显示所有的用户页面</title>
    <style>
        thead{
            background-color: green;
        }
        tbody{
            background-color: antiquewhite;
        }
        a{
            text-decoration: none;
           /* font-weight: bold;*/
        }
        #xxx{
            font-weight: bold;
        }
      /*  div{
            border: solid 1px;
        }
        span{
            border:solid 1px;
        }*/
    </style>
</head>
<body>
<button><a id="xxx" href="${pageContext.request.contextPath}/user?method=toAddPage">添加人员</a></button>
    <table border="1px"  >
        <caption>
           <h1> 用户管理系统</h1>
        </caption>
            <thead>
                <tr >
                    <td >用户编号</td>
                    <td>用户名</td>
                    <td>密码</td>
                    <td>创建时间</td>
                    <td colspan="2">操作</td>
                </tr>
            </thead>
        <tbody>
        <c:forEach items="${allUser}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.username}</td>
                <td>${user.password}</td>
                <td>${user.createtime}</td>
                <td><a href="${pageContext.request.contextPath}/user?method=delete&id=${user.id}">删除</a></td>
                <td><a href="${pageContext.request.contextPath}/user?method=toUpdatePage&id=${user.id}">修改</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>

</body>
</html>
